<!DOCTYPE html>
<html lang="en" xml:lang="en" xmlns:fb="http://ogp.me/ns/fb#" xmlns:og="http://ogp.me/ns#">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title><?php echo $this->pageTitle ?></title>
        <?php if(!empty($this->pageDesc)):?><meta name="description" content="<?php echo $this->pageDesc?>"><?php endif?>

        <?php if(!empty(Yii::app()->params->fb['adminId'])):?><meta property="fb:admins" content="<?php echo Yii::app()->params->fb['adminId']?>"/><?php endif?>
        <?php if(!empty(Yii::app()->params->fb['appId'])):?><meta property="fb:app_id" content="<?php echo Yii::app()->params->fb['appId']?>"/><?php endif?>

        <meta property="og:type" content="website" />
        <meta property="og:site_name" content="<?php echo $this->siteName?>" />
        <meta property="og:url" content="<?php echo $this->baseUrl.Yii::app()->request->requestUri?>" />
        <meta property="og:title" content="<?php echo CHtml::encode($this->pageTitle)?>" />

        <?php if(!empty($this->ogImage)):?><meta property="og:image" content="<?php echo $this->ogImage?>" /><?php endif?>
        <?php if(!empty($this->pageDesc)):?><meta property="og:description" content="<?php echo $this->pageDesc?>" /><?php endif?>

        <meta property="fb:url" content="<?php echo $this->baseUrl.Yii::app()->request->requestUri?>"/>

        <link rel="shortcut icon" href="<?php echo $this->icon['ico']?>">
        <link rel="apple-touch-icon" href="<?php echo $this->icon['57']?>">
        <link rel="apple-touch-icon" sizes="72x72" href="<?php echo $this->icon['72']?>">
        <link rel="apple-touch-icon" sizes="114x114" href="<?php echo $this->icon['114']?>">

        <script src="/files/js/jGrowl/jquery.jgrowl.min.js"></script>
        <link rel="stylesheet" type="text/css" href="/files/js/jGrowl/jquery.jgrowl.min.css"/>

        <link href="<?php echo $this->themeUrl?>/files/css/app.css" rel="stylesheet">
        <link rel="stylesheet" href="/files/font-awesome/css/font-awesome.min.css">
        <!--[if IE 7]>
        <link rel="stylesheet" href="/files/font-awesome/css/font-awesome-ie7.min.css">
        <![endif]-->


        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
        <script src="/files/bootstrap/docs/assets/js/html5shiv.js"></script>
        <script src="/files/bootstrap/docs/assets/js/respond/respond.min.js"></script>
        <![endif]-->


        <script src="/files/bootstrap/docs/assets/js/bootstrap.min.js"></script>
        <!--        <script src="/files/bootstrap/docs/assets/js/application.js"></script>-->


        
        
        
        
        

        <link href="/files/js/custom-scrollbar-plugin/jquery.mCustomScrollbar.css" rel="stylesheet" />        
        <script src="/files/js/custom-scrollbar-plugin/js/minified/jquery.mousewheel.min.js"></script>
        <script src="/files/js/custom-scrollbar-plugin/js/minified/jquery.mCustomScrollbar.min.js"></script>
 
      
        <link rel="stylesheet" href="/files/js/jGrowl/jquery.jgrowl.css" type="text/css"/>
        <script type="text/javascript" src="/files/js/jGrowl/jquery.jgrowl.min.js"></script>

        
        


        <script src="/files/js/bootstrap-hover-dropdown.min.js"></script>
        <script src="/files/js/jquery.numeric.js"></script>
        <script src="/files/js/functions.js"></script>
        <script src="/files/js/openidPopup.js"></script>
        <script src="<?php echo $this->themeUrl?>/files/js/app.js"></script>  



    </head>
    <body data-spy="scroll" data-target=".my-sidebar">
        <div id="fb-root"></div>
        <div id="ajax-loading">
            <img src="/files/img/loader_2.gif" /> Loading ...
        </div>

        <?php echo $content?>
        
        <?php $this->widget('application.components.widgets.AlertWidget');?>
        <?php /*
        <script>(function(d, s, id) {
          var js, fjs = d.getElementsByTagName(s)[0];
          if (d.getElementById(id)) return;
          js = d.createElement(s); js.id = id;
          js.src = '//connect.facebook.net/en_US/all.js#xfbml=1&appId=<?php echo Yii::app()->params->fb['appId']?>';
          fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>
        */?>
        <?php /*
        <script src="http://connect.facebook.net/en_US/all.js#xfbml=1&appId=<?php echo Yii::app()->params->fb['appId']?>"></script>
        <script>
            FB.Event.subscribe('edge.create',function(response) {$.post('/hehe/web/image/ajaxUpdatePoint', {response:response, event: 'like'});});
            FB.Event.subscribe('edge.remove',function(response) {$.post('/hehe/web/image/ajaxUpdatePoint', {response:response, event: 'unlike'});});
            FB.Event.subscribe('comment.create',function(response) {$.post('/hehe/web/image/ajaxUpdatePoint', {response:response, event: 'comment'});});
            FB.Event.subscribe('comment.remove',function(response) {$.post('/hehe/web/image/ajaxUpdatePoint', {response:response, event: 'uncomment'});});
        </script> 
        */?>
        <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
        <script type="text/javascript">
          window.___gcfg = {lang: 'vi'};

          (function() {
            var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
            po.src = 'https://apis.google.com/js/plusone.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
          })();
        </script>
    </body>

</html>